package com.ygq.train.member;

import lombok.extern.log4j.Log4j;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.logging.Log;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.Environment;



@Slf4j
@SpringBootApplication
@ComponentScan("com.ygq")
@EnableDiscoveryClient
public class memberSpringBootApplication {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(memberSpringBootApplication.class);
        Environment env = app.run(args).getEnvironment();
        log.info("启动成功");
        log.info("地址：\thttp://127.0.0.1:{}{}/test",env.getProperty("server.port"),env.getProperty("server.servlet.context-path"));

    }
}
